package cn.nuist.entity;

import cn.nuist.entity.enu.ProductCategory;

public class Products {
    private int productID;
    private String productName;
    private ProductCategory category;
    private String supplierName;
    private double unitPrice;
    private int currentStock;
    private String barcode;

    public Products(int productID, String productName, ProductCategory category, String supplier, double unitPrice, int currentStock, String barcode) {
        this.productID = productID;
        this.productName = productName;
        this.category = category;
        this.supplierName = supplier;
        this.unitPrice = unitPrice;
        this.currentStock = currentStock;
        this.barcode = barcode;
    }

    public Products() {
    }

    public int getProductID() {
        return productID;
    }

    public void setProductID(int productID) {
        this.productID = productID;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public ProductCategory getCategory() {
        return category;
    }

    public void setCategory(ProductCategory category) {
        this.category = category;
    }

    public String getSupplier() {
        return supplierName;
    }

    public void setSupplier(String supplier) {
        this.supplierName = supplier;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public int getCurrentStock() {
        return currentStock;
    }

    public void setCurrentStock(int currentStock) {
        this.currentStock = currentStock;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    @Override
    public String toString() {
        return "products{" +
                "productID=" + productID +
                ", productName='" + productName + '\'' +
                ", category=" + category +
                ", supplier='" + supplierName + '\'' +
                ", unitPrice=" + unitPrice +
                ", currentStock=" + currentStock +
                ", barcode='" + barcode + '\'' +
                '}';
    }
}
